<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>demo</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width"/>
	<link rel="shortcut icon" href="img/touchicon.png"/>
	<link rel="stylesheet" href=""/>
	<style>

	</style>
</head>
<body>
	<ul>
		<li>听说有刁民想害朕,微臣</li>
		<li>听说有刁民想害朕,微臣</li>
		<li>听说有刁民想害朕,微臣</li>
		<li>听说有刁民想害朕,微臣</li>
		<li>听说有刁民想害朕,微臣</li>
	</ul>
	<input type="button" id="btn" value="救驾" onclick="changeTxt()">
	<script>
	function changeTxt () {
		var list = document.getElementsByTagName('li');
		var i,s;
		for(i=0;i<list.length;i++){
			s = list[i].innerHTML;
			list[i].innerHTML = s.replace('微臣','谁来救驾？');
		}
	}
	
	</script>
</body>
</html>